package com.softserveinc.autorent.controller;

import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import com.softserveinc.autorent.model.Car;
import com.softserveinc.autorent.model.User;

@Stateless(name = "UserManager")
public class UserManager extends AbstractManager<User> {

	@PersistenceContext(unitName = "jpa")
	private EntityManager entityManager;

	public UserManager() {
		super(User.class);
	}
	
	@Override
	public EntityManager getEntityManager() {
		return entityManager;
	}

	@Override
	public void setEntityManager(EntityManager em) {
		this.entityManager = em;
	}

}
